//package org.blogwu.jvm_learn.springBoot深度解析.chapter2.bootstrap;
//
//import org.blogwu.jvm_learn.springBoot深度解析.chapter2.reponsitory.MyFirstLevelRepository;
//import org.springframework.boot.WebApplicationType;
//import org.springframework.boot.builder.SpringApplicationBuilder;
//import org.springframework.context.ConfigurableApplicationContext;
//import org.springframework.context.annotation.ComponentScan;
//
///**
// * 派生性
// *
// * @author hyf
// * @date 2019-06-20
// **/
//@ComponentScan(basePackages = {"org.blogwu.jvm_learn.springBoot深度解析.chapter2"})
//public class RepostitoryBootstrap {
//
//    public static void main(String[] args) {
//        ConfigurableApplicationContext configurableApplicationContext = new SpringApplicationBuilder(RepostitoryBootstrap.class)
//                .web(WebApplicationType.NONE)
//                .run(args);
//
//        MyFirstLevelRepository myFirstLevelRepository = configurableApplicationContext
//                .getBean("myFirstLevelRepository", MyFirstLevelRepository.class);
//
//        System.out.println("myFirstLevelRepository是否存在:" + myFirstLevelRepository.toString());
//        configurableApplicationContext.close();
//    }
//}
